import request from '@/utils/request'

//查询所有职位
export const queryAllApi = () => request.get('/jobs')

//根据ID查询职位
export const queryInfoApi = (id) => request.get(`/jobs/${id}`)

//新增职位
export const addJobApi = (data) => request.post('/jobs', data)

//修改职位
export const updateJobApi = (data) => request.put('/jobs', data)

//删除职位
export const deleteJobApi = (id) => request.delete(`/jobs/${id}`)